
/*
 *    MCreator note: This file will be REGENERATED on each build.
 */
package net.mcreator.bombwork.init;

import net.minecraftforge.registries.RegistryObject;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.client.event.ColorHandlerEvent;
import net.minecraftforge.api.distmarker.Dist;

import net.minecraft.world.level.block.Block;

import net.mcreator.bombwork.block.GunforwoodWoodBlock;
import net.mcreator.bombwork.block.GunforwoodStairsBlock;
import net.mcreator.bombwork.block.GunforwoodSlabBlock;
import net.mcreator.bombwork.block.GunforwoodPressurePlateBlock;
import net.mcreator.bombwork.block.GunforwoodPlanksBlock;
import net.mcreator.bombwork.block.GunforwoodLogBlock;
import net.mcreator.bombwork.block.GunforwoodLeavesBlock;
import net.mcreator.bombwork.block.GunforwoodFenceGateBlock;
import net.mcreator.bombwork.block.GunforwoodFenceBlock;
import net.mcreator.bombwork.block.GunforwoodButtonBlock;
import net.mcreator.bombwork.block.DirtforgunBlock;
import net.mcreator.bombwork.block.BombspacelabBlock;
import net.mcreator.bombwork.block.BombgrassBlock;
import net.mcreator.bombwork.BombworkMod;

public class BombworkModBlocks {
	public static final DeferredRegister<Block> REGISTRY = DeferredRegister.create(ForgeRegistries.BLOCKS, BombworkMod.MODID);
	public static final RegistryObject<Block> BOMBSPACELAB = REGISTRY.register("bombspacelab", () -> new BombspacelabBlock());
	public static final RegistryObject<Block> BOMBGRASS = REGISTRY.register("bombgrass", () -> new BombgrassBlock());
	public static final RegistryObject<Block> GUNFORWOOD_WOOD = REGISTRY.register("gunforwood_wood", () -> new GunforwoodWoodBlock());
	public static final RegistryObject<Block> GUNFORWOOD_LOG = REGISTRY.register("gunforwood_log", () -> new GunforwoodLogBlock());
	public static final RegistryObject<Block> GUNFORWOOD_PLANKS = REGISTRY.register("gunforwood_planks", () -> new GunforwoodPlanksBlock());
	public static final RegistryObject<Block> GUNFORWOOD_LEAVES = REGISTRY.register("gunforwood_leaves", () -> new GunforwoodLeavesBlock());
	public static final RegistryObject<Block> GUNFORWOOD_STAIRS = REGISTRY.register("gunforwood_stairs", () -> new GunforwoodStairsBlock());
	public static final RegistryObject<Block> GUNFORWOOD_SLAB = REGISTRY.register("gunforwood_slab", () -> new GunforwoodSlabBlock());
	public static final RegistryObject<Block> GUNFORWOOD_FENCE = REGISTRY.register("gunforwood_fence", () -> new GunforwoodFenceBlock());
	public static final RegistryObject<Block> GUNFORWOOD_FENCE_GATE = REGISTRY.register("gunforwood_fence_gate",
			() -> new GunforwoodFenceGateBlock());
	public static final RegistryObject<Block> GUNFORWOOD_PRESSURE_PLATE = REGISTRY.register("gunforwood_pressure_plate",
			() -> new GunforwoodPressurePlateBlock());
	public static final RegistryObject<Block> GUNFORWOOD_BUTTON = REGISTRY.register("gunforwood_button", () -> new GunforwoodButtonBlock());
	public static final RegistryObject<Block> DIRTFORGUN = REGISTRY.register("dirtforgun", () -> new DirtforgunBlock());

	@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT)
	public static class ClientSideHandler {
		@SubscribeEvent
		public static void clientSetup(FMLClientSetupEvent event) {
			BombgrassBlock.registerRenderLayer();
		}

		@SubscribeEvent
		public static void blockColorLoad(ColorHandlerEvent.Block event) {
			BombgrassBlock.blockColorLoad(event);
		}

		@SubscribeEvent
		public static void itemColorLoad(ColorHandlerEvent.Item event) {
			BombgrassBlock.itemColorLoad(event);
		}
	}
}
